package com.kk.boot_start_com1;

import com.kk.boot_start_com1.controller.TestController;
import com.kk.boot_start_com1.properties.TestProperties;
import com.kk.boot_start_com1.service.TestService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;


//给容器中导入Robot功能要用的所有组件
@Import({TestProperties.class, TestService.class})
@Configuration
public class TestAutoConfiguration {

    @Bean //把组件导入到容器中
    public TestController robotController(){
        return new TestController();
    }


}
